cmake_minimum_required(VERSION 3.13)
project(demo)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(OpenCV REQUIRED)

include_directories(${OpenCV_INCLUDE_DIRS})
add_executable(demo main.cc)

if(UNIX AND NOT APPLE)
    target_link_libraries(demo ${OpenCV_LIBS} stdc++fs)
else()
target_link_libraries(demo PRIVATE
	${OpenCV_LIBS})
endif()
